import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { CountStQuery, FormStVO } from '@/api/home/types';

/**
 * 设备统计图
 */
export const deviceStatistics = (query?: CountStQuery): AxiosPromise<FormStVO[]> => {
  return request({
    url: '/system/deviceInfo/date/count',
    method: 'get',
    params: query
  });
};
/**
 * 用户统计图
 */
export const userStatistics = (query?: CountStQuery): AxiosPromise<FormStVO[]> => {
  return request({
    url: '/member/member/date/count',
    method: 'get',
    params: query
  });
};
